package com.nuoniu.sibanyun.controller.expenses;


import com.nuoniu.sibanyun.common.BaseController;
import com.nuoniu.sibanyun.common.result.HttpResult;
import com.nuoniu.sibanyun.entity.expenses.dto.ExpensesBalanceChangeRecordSearchDto;
import com.nuoniu.sibanyun.service.expenses.IExpensesBalanceChangeRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 费用中心-收支明细 前端控制器
 * </p>
 *
 * @author 白强
 * @since 2022-05-06
 */
@RestController
@RequestMapping("/expenses/balanceChangeRecord")
@Api(value="费用中心-收支明细 ",tags={"费用中心-收支明细"})
public class ExpensesBalanceChangeRecordController extends BaseController {

    @Autowired
    private IExpensesBalanceChangeRecordService balanceChangeRecordService;

    @PostMapping("pageList")
    @ApiOperation(value = "分页查询 收支明细")
    public HttpResult pageList(@RequestBody ExpensesBalanceChangeRecordSearchDto changeRecordSearchDto) {
        return HttpResult.ok(balanceChangeRecordService.pageList(changeRecordSearchDto));
    }

}
